package hivi.vn.hivigold.objects;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

public class Partner implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String partnerID;
	private String partnerName;
	private String partnerFax;
	private String partnerMail;
	private String partnerAddress;
	private String partnerNote;
	private String partnerImage;
	private String partnerTel;
	public Partner(JSONObject json) {
		// TODO Auto-generated constructor stub
		try {
			partnerID = json.getString("DoiTacID");
			partnerName = json.getString("DoiTacName");
			partnerFax = json.getString("DoiTacFax");
			partnerMail = json.getString("DoiTacEmail");
			partnerAddress = json.getString("DoiTacAdd");
			partnerNote = json.getString("DienGiai");
			partnerImage = json.getString("Imagepath");
			partnerTel = json.getString("DoiTacTel");
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public Partner() {
		// TODO Auto-generated constructor stub
	}

	public String getPartnerID() {
		return partnerID;
	}
	public void setPartnerID(String partnerID) {
		this.partnerID = partnerID;
	}
	public String getPartnerName() {
		return partnerName;
	}
	public void setPartnerName(String partnerName) {
		this.partnerName = partnerName;
	}
	public String getPartnerFax() {
		return partnerFax;
	}
	public void setPartnerFax(String partnerFax) {
		this.partnerFax = partnerFax;
	}
	public String getPartnerMail() {
		return partnerMail;
	}
	public void setPartnerMail(String partnerMail) {
		this.partnerMail = partnerMail;
	}
	public String getPartnerAddress() {
		return partnerAddress;
	}
	public void setPartnerAddress(String partnerAddress) {
		this.partnerAddress = partnerAddress;
	}
	public String getPartnerNote() {
		return partnerNote;
	}
	public void setPartnerNote(String partnerNote) {
		this.partnerNote = partnerNote;
	}
	public String getPartnerImage() {
		return partnerImage;
	}
	public void setPartnerImage(String partnerImage) {
		this.partnerImage = partnerImage;
	}

	public String getPartnerTel() {
		return partnerTel;
	}

	public void setPartnerTel(String partnerTel) {
		this.partnerTel = partnerTel;
	}
}
